/*************************************************************
 * File: IResourceService.java
 * Copyright (c) 2012
 * Author: Huang Shaobin
 * Email: Shaobin.Software@gmail.com Shaobin_Software@163.com 
 * Date: Feb 11, 2013
 * Description: 
 ************************************************************/

package snow.biz.security.service;

import java.util.List;

import snow.biz.security.model.Resource;
import snow.core.persistence.Pagination;
import snow.core.persistence.query.Conditions;
import snow.core.persistence.query.Order;

/**
 * 系统资源相关服务接口
 * 
 * @author Shaobin.Software@gmail.com Shaobin_Software@163.com
 * @version 1.0
 */
public interface IResourceService {

	Integer createResource(Resource resource);

	void modifyResource(Resource resource);

	void removeResource(Resource resource);

	Resource searchResourceFrom(Integer id);

	List<Resource> searchResourcesFrom(Conditions conditions, List<Order> orders);

	Pagination searchResourcesFrom(Conditions conditions, List<Order> orders, int start, int limit);

}
